﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CodeFarmer.Model.Entities
{
     public class Article
    {
         public Article()
         {
             //this.ArticleCategories = new List<ArticleCategory>();
             //this.Comments = new List<Comment>();
         }

        public int ID { get; set; }
        public int AuthorID { get; set; }
        public DateTime CreateTime { get; set; }
        public DateTime? EditTime { get; set; }
        public int ViewCount { get; set; }
        public int UpCount { get; set; }
        public int ShowOrder { get; set; }
        public bool EnableCommnet { get; set; }
        public string Title { get; set; }
        public string Content { get; set; }
        public int State { get; set; }
        public virtual  User Author { get; set; }
        //public virtual ICollection<ArticleCategory> ArticleCategories { get; set; }
        //public virtual ICollection<Comment> Comments { get; set; }


    }
}
